import 'package:flutter/material.dart';
import 'package:kepu/util/constant/route_name.dart';

Widget floatButton(BuildContext context){
  return IconButton(
    onPressed: () {
      Navigator.of(context).pushNamed(RouteName.SEARCH);
    },
    icon: CircleAvatar(
      backgroundColor: Theme.of(
        context,
      ).primaryColor.withValues(alpha: 0.3),
      child: Icon(Icons.search, color: Colors.white, size: 50),
    ),
  );
}